Skip to main content

Directions API Playground

The Mapbox Directions API produces turn-by-turn instructions using four different Mapbox routing profiles: mapbox/driving-traffic, mapbox/driving, mapbox/walking, and mapbox/cycling.

To use the playground, select an origin and at least 1 destination by either:

  • Clicking directly on the map.
  • Adding locations in the sidebar by their longitude/latitude or searching by name.

With each update, the playground will call the directions API and display the results for you to inspect. You can adjust the parameters to experiment with different settings to create your route.

Reporting issues about a suggested route

After using the playground to generate directions, you can provide feedback about a suggested route to help us improve the Directions API.

  • In the directions sidebar, click the purple Send feedback about this route button.
  • Select a feedback category and leave your suggestion in the comments.
Directions API Playground
Parameters
from your account page
up to 25 longitude,latitude waypoints.
pencil
pencil
routing profile
Optional parameters
engineenable ev routing
return alternative routes
local time at origin
geometriesformat of the returned geometry
enable turn-by-turn instructions
excludeexclude the following road types
continue in the same direction of travel
overviewtype of geometry
annotationsadditional metadata
notificationswarnings along the route
Click the map to add waypoints
Request URL
GET: https://api.mapbox.com/directions/v5/{profile}/{coordinates}
Response
You haven't created an API request yet.
Was this playground helpful?